package com.atnjupt.admin.service.impl;

import com.atnjupt.admin.bean.City;
import com.atnjupt.admin.dao.CityDao;
import com.atnjupt.admin.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Wizarder
 * @create 2021-10-24 15:30
 */
@Service
public class CityServiceImp implements CityService {
    @Autowired
    CityDao cityDao;

    @Override
    public City getCity(Integer id) {
        return cityDao.getCityById(id);
    }

    @Override
    public void saveCity(City city) {
        cityDao.saveCity(city);
    }
}
